-------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\riley\Dropbox\DialysisAmbulanceFraud\JPE Submission\Final Submission\replication\logs/case_counts.log
  log type:  text
 opened on:  16 Jul 2024, 15:51:17

. 
. /*******************************************************************************
> case_counts.do
> 
> This code reports the number of firms subject to litigation
> *******************************************************************************/
. 
. qui {

. 
. bysort CriminalvsCivil: gen cases=_N

. bysort CriminalvsCivil: egen totalnames=total(namefirms)

. bysort CriminalvsCivil: egen totalNPIs=total(NPIfirms)

. 
. list CriminalvsCivil cases totalnames totalNPIs if _n==1 | _n==_N // Referenced in Section 6.2, Paragraph 1 and Appendix J.2, Bullets 2-3

     +----------------------------------------+
     | Crimin~l   cases   totaln~s   totalN~s |
     |----------------------------------------|
  1. |    Civil      12         45         44 |
 37. | Criminal      25         26         28 |
     +----------------------------------------+

. 
. bysort CriminalvsCivil in2years: egen name2year=total(namefirms)

. bysort CriminalvsCivil in2years: egen NPI2year=total(NPIfirms)

. 
. list CriminalvsCivil in2years name2year NPI2year if _n==_N // Referenced in Section 5.4, Paragraph 3

     +-------------------------------------------+
     | Crimin~l   in2years   name2y~r   NPI2year |
     |-------------------------------------------|
 37. | Criminal          1         14         14 |
     +-------------------------------------------+

. 
. log close
      name:  <unnamed>
       log:  C:\Users\riley\Dropbox\DialysisAmbulanceFraud\JPE Submission\Final Submission\replication\logs/case_counts.log
  log type:  text
 closed on:  16 Jul 2024, 15:51:17
-------------------------------------------------------------------------------------------------------------------------------------------
